/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.nms.crm.management.imp;

import com.nms.base.crm.Template;
import com.nms.crm.imp.beforadd.IsExist;
import com.nms.crm.interfaces.AfterAddInt;
import com.nms.crm.interfaces.BeforAddInt;
import com.nms.crm.management.CRMManagementInt;
import com.nms.entities.Customers;
import com.nms.errors.ErrorClass;
import java.util.ArrayList;

/**
 *
 * @author eisa
 */
public class CRMManagement extends Template<Object> implements CRMManagementInt {

    public CRMManagement() {
         beforAddActions=new ArrayList<BeforAddInt>();
         afterAddActions=new ArrayList<AfterAddInt>();
    }
    
    private void fillBeforAction()
    {
        beforAddActions.add(new IsExist());
    }
    
    public ErrorClass addCustomer(Customers obj) {
        return saveProcessing(obj);
       

    }

}
